// 服务时间api
import fetch from '@/common/utils/http'

/* 查询列表 */
export const queryServiceTime = (data: any) =>
  fetch({
    url: '/platform/action/servicetime/query',
    method: 'POST',
    data
  })
/* 获取节假日和调班信息*/
export const getShiftsAndHolidays = (data: any) =>
  fetch({
    url: '/platform/action/servicetime/getShiftsAndHolidays',
    method: 'POST',
    data
  })
/* 更新节假日和调班信息*/
export const updateShiftsAndHolidays = (data: any) =>
  fetch({
    url: '/platform/action/servicetime/updateShiftsAndHolidays',
    method: 'POST',
    data
  })
/* 新建服务时间*/
export const createServiceTime = (data: any) =>
  fetch({
    url: '/platform/action/servicetime/create',
    method: 'POST',
    data
  })
/* 更新服务时间*/
export const updateServiceTime = (data: any) =>
  fetch({
    url: '/platform/action/servicetime/update',
    method: 'POST',
    data
  })
